/*
 * @Author: yushuang
 * @Date: 2024-12-17 17:48:29
 * @LastEditors: yushuang
 * @LastEditTime: 2024-12-17 17:49:17
 * @Description:
 */
import { useGet } from '@/composables/api';

export interface UserInfo {
  id: number | string;
  username: string;
  nickname: string;
  avatar: string;
  roles?: (string | number)[];
}

export function getUserInfoApi() {
  return useGet<UserInfo>('/user/info');
}
